package com.project.class8_16;

/**
 * 学生实体类
 */
public class Student {
    /**编号*/
    private String code;
    /**姓名*/
    private String name;
    /**学历 */
    private String edu;
    /**年龄*/
    private Integer age;
    /**电话*/
    private String phone;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", edu='" + edu + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                "}\n";
    }
}
